<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>余额查询</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/animate.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/jQuery-Validation/css/validationEngine.jquery.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/accountadd.css" rel="stylesheet">
    <style type="text/css">
        
        body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";font-size:14px;}
        #l-map{height:700px;width:100%;}
        #r-result{width:100%;}
	  *{
	      margin:0px;
	      padding:0px;
	  }
	  body, button, input, select, textarea {
	      font: 12px/16px Verdana, Helvetica, Arial, sans-serif;
	  }
	  p{
	      width:603px;
	      padding-top:3px;
	      overflow:hidden;
	  }
	  #container{
	    margin-top:50px;
	   	width:100%;
	    min-height:767px;
	    }
	    .Account input{border:none; background:#F2F2F3 !important; border-bottom:3px solid #EDEDED;}
    </style>
</head>
<body class="gray-bg">
    <div class="container Account" style="margin-top: 50px">
        <form class="form-horizontal" role="form" id="accountPublic" enctype="multipart/form-data" autocomplete="off">
        <input type="hidden" value="01" name="comnumType" id="comnumType">
                <div class="col-xs-12 col-md-12">
	                <div class="form-group">
	                    <label class="col-xs-3 control-label">可用余额:</label>
	                    <div class="col-xs-9">
	                        <input type="text" class="form-control validate[required]" name="balance" 
	                        	id="balance" placeholder="持卡人姓名" readonly="readonly">	
	                    </div>
	                </div>
	                <div class="form-group">
	                    <label class="col-xs-3 control-label">挂账金额:</label>
	                    <div class="col-xs-9">
	                        <input type="text" class="form-control validate[required]" name="billAmt" 
	                        	id="billAmt" placeholder="持卡人姓名" readonly="readonly">	
	                    </div>
	                </div>
	                <div class="form-group">
	                    <label class="col-xs-3 control-label">冻结金额:</label>
	                    <div class="col-xs-9">
	                        <input type="text" class="form-control validate[required]" name="frozenAmt" 
	                        	id="frozenAmt" placeholder="持卡人姓名" readonly="readonly">	
	                    </div>
	                </div>
	              <div class="form-group" style="margin-top50px;">
	                  <div class="col-sm-12 control-label" style="text-align:center;">
	                      <button type="button" class="btn btn-default" onclick="closeForm();">关闭</button>
	                  </div>
	              </div>
             </div> 
         </form>
    </div>
    
<script src="${pageContext.request.contextPath}/js/jquery.min.js?v=2.1.4"></script>
<script src="${pageContext.request.contextPath}/js/bootstrap.min.js?v=3.3.6"></script>
<script src="${pageContext.request.contextPath}/js/content.min.js?v=1.0.0"></script>
<script src="${pageContext.request.contextPath}/js/public/ttbj-core.js"></script>
<script src="${pageContext.request.contextPath}/jQuery-Validation/js/jquery.validationEngine.js"></script>
<script src="${pageContext.request.contextPath}/jQuery-Validation/js/jquery.validationEngine-zh_CN.js"></script>
<script src="${pageContext.request.contextPath}/laydate5.0.7/laydate.js"></script>
</body>
<script>
        $(function () {
        	accountNo = $.getUrlParam("driverAccountNo");
        	accountBalanceInfo();
        })
        //关闭窗口
       	function closeForm() {
		    var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
		    parent.layer.close(index);
		}
      //点击回显数据
        function accountBalanceInfo(){
            $.ajax({
                url: "../company/getBalanceInfo.htm",
                cache: false,
                async : false,
                type: "get",
                dataType: "json",
        	    data: {accountNo: accountNo},
                success: function (result) {
                    if (result.status == 0) {
                    	var data1 = result.data;
                        	$("#accountPublic").formatForm(data1);
                            return;
                    }
                }
            });
        }
    </script>
</html>